<?php
if (isset($_SESSION['login'])) {
?>
<div>

    <h1>Suggestions</h1>

    <!-- formulaire permettant la suggestion d'un mot-->
    <form method="post" id="suggestion" name="suggestion" onsubmit="return testChampsAdmin(this);" action="#">
        <h3>* Champ obligatoire</h3>

        <p>
            <label for="mot_fr">Votre suggestion (en Francais)* :</label><br/>
            <label for="mot_en">Votre suggestion (en anglais)* :</label>
        </p>    

        <p id="text">
            <input type="text" name="mot_fr" id="mot_fr" value="" maxlength="20" onchange="test_suggestion(this);" onkeypress="return valid_carac(event);"/>
            <input type="text" name="mot_en" id="mot_en" value="" maxlength="20" onchange="transformer_chaine(this);" onkeypress="return valid_carac(event);"/>
        </p>
        
        <p><span id="mot_fr_check"></span></p>

        <div>
            <input type="submit" name="Valider" value="Soumettre la suggestion"/>
        </div>

    </form>

</div>
<?php
} else {
    header('Location: erreur.php');
}
?>